package com.zxx.otherchaos.widgets.progress;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.view.View;

/**
 * 未完
 *
 * @author zxx on 2021/7/22
 */
public abstract class BaseProgressBar {

    public static final int HORIZONTAL = 0;
    public static final int VERTICAL = 1;
    public static final int CIRCLE = 2;

    protected Paint mPaint;

    public BaseProgressBar() {
        mPaint = new Paint(Paint.ANTI_ALIAS_FLAG | Paint.DITHER_FLAG);
    }

    //获取测量高度，由具体子类实现
    public abstract int getMeasureHeight();

    //获取测量宽度，由具体子类实现
    public abstract int getMeasureWidth();

    //具体绘制操作，由具体子类实现
    public abstract void draw(View view, Canvas canvas);

}
